{strip}
{foreach $query as $res} {assign var=g_dt value=json_decode($res.json,true)} {assign var=fromuser value=$this->getUserDetails($res.condition)} {assign var=gift_details value=$this->getGiftDetails($res.item)}
{if $g_dt.private === '' && $g_dt.anonym === ''}
{$fromuser.fullname}
{else}
{/if}
{if $g_dt.private === '' && $g_dt.anonym === ''} {$fromuser.fullname} {$this->lang['sent_you_a_gift']} {else if ($g_dt.private === 'on')} {$this->lang['you_have_received_a_private_gift']} {else if ($g_dt.anonym === 'on')} {$this->lang['you_have_received_anonym_gift']} {/if}
{$g_dt.descr}
{$this->lang['Decline']}
{/foreach}
{/strip}